<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>简答组卷题目设置</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">	
	<load href= "__JS__/jshelper.js" /> 
	<load href="__JS__/jQuery/jquery.js" />
    <load href="__JS__/jQuery/jquery.form.js" />
<script   type= "text/javascript"> 
	function   subform(gourl){   
 	 var   gourl; 
  	form2.action=gourl; 
  	form2.submit(); 
	} 
</script> 
	<script type="text/JavaScript">
       $(function(){
           $('#form1').ajaxForm({
               //beforeSubmit:  function(){alert("before");},  // pre-submit callback
               success:       complete,  // post-submit callback
               error:function(){alert("error");},
               dataType: 'json'
           });
           
           function complete(data){
               if (data.status==1)
               {
               	window.location='__URL__/saqtdetail2/id/{$testid}';
               }else{
                   $('#result').html(data.info).show();
               }
           }
       });
       </script>
</head>

<body>
	<layout name="Auth:header" />
    	<div class="container-fluid">
     		<div class="row-fluid">
  			  <layout name="Auth:leftmenu" />
              	 <div class="span8">
                    <div class="hero-unit">
                  	<h1>简答组卷题目设置</h1>
                    <p style="font-size:12px">当前位置：
                        <a href='__APP__/index/index' class="nowpositionhref">主页</a>>
                        <a href='__URL__/index' class="nowpositionhref">后台管理</a>>
                        <a href='__URL__/choose1' class="nowpositionhref">测试管理</a>>
                        <a href='__URL__/testdetail' class="nowpositionhref">试题管理</a>>
                        <a href='__URL__/testpackage/id/{$testid}' class="nowpositionhref">组卷</a>>
                        <a href='__URL__/saqtdetail1/id/{$testid}' class="nowpositionhref">简答组卷</a>>
                        <a href='__URL__/saqtdetail2/id/{$testid}' class="nowpositionhref">简答组卷预览</a>>
                        <a href="">简答组卷编辑</a>
                      </p>
                      </div>
                        <div id='result' style="position:relative; left:400px; "></div>
                            <form id='form1' method="post" action="__URL__/saqtupdate" >	
                            <input type="hidden" name="id" value={$vo.id}>
                            <input type="hidden" name="testid" value={$vo.testid}>
                            <input type="hidden" name="number1" value={$vo.number}>
                                <table>
                                    <tr>
                                        <td>题号：<input type="text" name="number" value="{$vo.number}"></td>				
                                    </tr>
                                    <tr>
                                    	 <td >分值：<input type="text" name="score" value="{$vo.score}"></td>
                                    </tr>
                                    <tr>
                                        <td><input type="submit" value="更新" class="btn btn-success" style="width:80px;"></td>
                                    </tr>
                                </table>
                            </form>
                            
		
	</div>
</div>
</div>
</body>
</html>
